package cn.cnic.user.component.system.ctrl;

import cn.cnic.user.component.system.service.IConstantServices;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;


@Controller
@RequestMapping(value = "/common")
public class CommonsCtrl {

    @Resource
    private IConstantServices iConstantServices;

    @RequestMapping("/constant")
    @ResponseBody
    public String userList() {
        return iConstantServices.selectByNamespace();
    }


}
